const mongoose = require('mongoose');
mongoose.connect('mongodb+srv://2602976804:cM2xSnMP9x80Mmto@cluster0.mf0a9.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0/test')
    .then(() => console.log('Connected to MongoDB'))
    .catch((err) => console.log('Could not connect to MongoDB', err));

module.exports = mongoose;